package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.domain.SeckillGood;
import cn.wolfcode.shop.cloud.vo.SeckillGoodVO;

import java.util.List;

public interface ISeckillGoodService {

    List<SeckillGoodVO> query();


    SeckillGoodVO queryById(Long seckillId);


    /**
     * 减少库存
     * @param seckillId
     */
    int decr(Long seckillId);

    SeckillGoodVO queryByIdCache(Long seckillId);

    List<SeckillGoodVO> queryCache();


    void incrCount(Long seckillId);

    void syncPreCount(Long goodId);
}
